import Faqs from '@/pages/Faqs'
import Home from '@/pages/Home'
import Layout from '@/pages/Layout'
import Login from '@/pages/Login'
import Video from '@/pages/Video'
import User from '@/pages/User'
import { createBrowserRouter } from 'react-router-dom'

const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout></Layout>,
    children: [
      {
        index: true,
        element: <Home></Home>
      },
      {
        path: '/faqs',
        element: <Faqs></Faqs>
      },
      {
        path: '/video',
        element: <Video></Video>
      },
      {
        path: '/user',
        element: <User></User>
      }
    ]
  },
  {
    path: '/login',
    element: <Login></Login>
  }
])

export default router
